package org.web.ssm.service;

import org.springframework.stereotype.Service;
import org.web.ssm.model.Product;
import org.web.ssm.model.Topic;
import org.web.ssm.model.queryVo.BaseQuery;

/**
 * Created by hubin on 2016/6/15.
 */
@Service
public interface ITopicService {

    /**
     * 获取话题列表
     *
     * @return
     * @throws Exception
     */
    BaseQuery<Topic> getTopicList(Integer managerId, int pageSize, int pageCurrent, String keyword) throws Exception;

    /**
     * 添加产品
     *
     * @param topic
     * @throws Exception
     */
    void addTopic(Topic topic) throws Exception;

    void updateTopic(Topic topic) throws Exception;

    void delTopic(int id) throws Exception;

}
